Update with two tables?? - Mailing list pgsql-sql

From Mark
Subject Update with two tables??
Date
Msg-id v04003a01b38d9d2a79a9@[172.16.200.154]
Whole thread Raw
Responses Re: [SQL] Update with two tables??
List pgsql-sql
I am trying to update table A with data from table B. I thought I could do
something like:

UPDATE A
SET A.name = B.name
WHERE A.id = B.id
FROM B

but alas, this does not work.

Anyone have an idea of how I can do this?

-Mark


-----------------------------------------------------------------  Mark Lundquist  mlundquist@bvsdps.com
-----------------------------------------------------------------




pgsql-sql by date:

Previous
From: Ravneet Mann
Date:
Subject: help needed
Next
From: Hector M Banda
Date:
Subject: Little Help is needed.